package com.lagou.worker.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName CodeService
 * @Description TODO
 * @Author xsq
 * @Date 2020/7/30 17:34
 **/
@FeignClient(value = "service-code",path = "code")
public interface CodeService {

    /**
     * 验证码验证
     * @param email
     * @param code
     * @return
     */
    @GetMapping(value = "/validate/{email}/{code}")
    ResponseEntity<Integer> validate(@PathVariable("email")String email,
                                   @PathVariable("code")String code);
}
